{* Template Name:文章页单页 *}
<!DOCTYPE html>
<html lang="{$lang['lang_bcp47']}">

<head>
  {template:header}
</head>

<body class="single {$type}">
<header>
  <div class="box">
    <div class="clear"></div>
    <nav>
    <div class="name"><a href="{$host}">{$name}</a></div>
      <ul id="starlist">
        {module:navbar}
      </ul>
      <h2 id="mnavh"><span class="navicon"></span></h2>
    </nav>
  </div>
</header>
<div class="container">
  <div class="ph_margin"></div>
  <div class="box">
    <div class="blogs_info_page">
      <div class="weizhi">
        当前位置：
        {if $type == 'index'}
          <i class="fa fa-bullhorn"></i>网站改版调试中!
        {elseif $type == 'category'}
          <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>
          {php}
            $html='';
            function navcate($id){
              global $html;
              $cate = new Category;
              $cate->LoadInfoByID($id);
              $html ='&raquo;  <a href="' .$cate->Url.'" title="查看' .$cate->Name. '中的全部文章">' .$cate->Name. '</a> '.$html;
              if(($cate->ParentID)>0){navcate($cate->ParentID);}
            }
            navcate($category->ID);
            global $html;
            echo $html;
          {/php}
        {elseif $type =="article"}	
          <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>	
          {php}
            $html='';
            function navcate($id){
              global $html;
              $cate = new Category;
              $cate->LoadInfoByID($id);
              $html ='&raquo;  <a href="' .$cate->Url.'" title="查看' .$cate->Name. '中的全部文章">' .$cate->Name. '</a> '.$html;
              if(($cate->ParentID)>0){navcate($cate->ParentID);}
            }
            navcate($article->Category->ID);
            global $html;
            echo $html;
          {/php} &raquo; {$article.Title}
        {elseif $type =="page"}
          <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>
          &raquo; {$article.Title}
        {elseif $type =="tag"}
          <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>
          &raquo;
          <span class="current">标签存档：{$tag.Name}</span>
        {elseif $type =="author"}
            <i class="fa fa-home"></i> <a href="{$host}" title="{$name}">首页</a>
            &raquo;
          <span class="current">{$author.Name} 的文章</span>
        {/if}
      </div>
      <article>
       {if $article.Type==ZC_POST_TYPE_ARTICLE}
       {template:post-single}
       {else}
       {template:post-page}
       {/if}
      </article>
      <div class="msgcon th_top">
       {if !$article.IsLock}
          {template:comments}
       {/if}
      </div> 
      {if $article.Type==ZC_POST_TYPE_ARTICLE}
      <div class="wz_love">
        <h2 class="h_title">猜你喜欢</h2>
        <ul>
          {foreach GetList(6,$article.Category.ID) as $related}
           <li><a href="{$related.Url}" target="_blank"> <i><img src="{light_blog_thumbnail($related)}" alt=""></i>
            <h2>{$related.Title}</h2>
            <span>{$related.time('Y-m-s')}</span> </a></li>
          {/foreach}
        </ul>
      </div>
      {/if}
    </div>
    <aside class="rbox">
      <div class="hot_news margtintop">
        <h2 class="h_title">人气点击</h2>
        <ol start="1">
          {$hotArray = $zbp->GetArticleList(array('*'),array(array('=','log_Status','0')),array('log_ViewNums'=>'DESC'),array(10),'');}
          {foreach $hotArray as $hotArticle}
            <li><a href="{$hotArticle.Url}" title="" target="_blank">
            <p>{$hotArticle.Title}</p>
            </a><span>{$hotArticle.ViewNums}</span></li>
          {/foreach}
        </ol>
      </div>
      {if $type=='article'}
          {template:sidebar3}
          {elseif $type=='page'}
          {template:sidebar4}
          {/if}
    </aside>
    <div class="clear"></div>
  </div>
</div>
<footer>
  <div class="box">
    <div class="copyright">
      <p>{$copyright}</p>
      <p>Powered By {$zblogphphtml}</p>
    </div>
  </div>
</footer>

<a href="#" title="返回顶部" class="icon-top"></a>
</body>

</html>